package mest.service.hank;

import mest.entity.plan_productjob_purchase_record;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_takematerial;
import mest.entity.plan_productjob_takematerial_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PlanProductjobTakematerialService {
    int deleteByPrimaryKey(Integer id,String theirDb);

    int insert(plan_productjob_takematerial record,String theirDb);

    int insertSelective(plan_productjob_takematerial record,String theirDb);

    plan_productjob_takematerial selectByPrimaryKey(Integer id,String theirDb);

    int updateByPrimaryKeySelective(plan_productjob_takematerial record,String theirDb);

    int updateByPrimaryKey(plan_productjob_takematerial record,String theirDb);



    int intsertList(List<plan_productjob_takematerial> record,String theirDb);



    List<Map> queryAllModel_byId(Integer index, Integer pageSize, Integer psId,String theirDb);
    /**
     * 2.model 总行数查询
     * @param ptId
     * @return
     */
    int findCount(Integer ptId,String theirDb);

    int updateByone(String theirDb,
                    List<plan_productjob_takematerial_record> record);

}